<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="father">
        <div class="son">son盒子</div>
    </div>

    <div id="1">1</div>
    <script>
        var son = document.querySelector(".son")
        son.addEventListener('click', function () {
            alert('son')
        }, false)

    </script>
    <script>
        var father = document.querySelector(".father")
        son.addEventListener('click', function () {
            alert('father')
        }, false)

    </script>

    <script>

        document.getElementById('1').onclick = function (event) {
            console.log(event.target);
        }
    </script>
</body>

</html>